<?php

function curl_post($url, $data)
{   
    $curl = curl_init();    
    curl_setopt($curl, CURLOPT_URL, $url);
    curl_setopt($curl, CURLOPT_POSTFIELDS, $data);  
    curl_setopt($curl, CURLOPT_AUTOREFERER, 1);
    curl_setopt($curl, CURLOPT_HEADER,0);
    curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);    
    curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1);    
    curl_setopt($curl, CURLOPT_TIMEOUT, 10);
    $result = curl_exec($curl); curl_close($curl);    
    return $result;
}
$vcom_ac = 'fj720_08';
$vcom_pw = strtoupper(md5('ab8888'));
$mt_rand = date('Y-m-d H:i:s');
$xml = <<<xml
<Group Login_Name="{$vcom_ac}" Login_Pwd="{$vcom_pw}" OpKind="0" InterFaceID="" >
    <E_Time>$mt_rand</E_Time>
    <Item>
        <Task>
            <Recive_Phone_Number>13348256746</Recive_Phone_Number>
            <Content>您的注册验证码为123456,请您在10分钟内完成操作,请勿向他人提供此校验码.</Content>
            <Search_ID>$mt_rand</Search_ID>
        </Task>
    </Item>
</Group>
xml;
echo $xml;


echo curl_post('http://userinterface.vcomcn.com/Opration.aspx', $xml);